package cn.wmm.company.web.controllers.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhengzihong
 * @version 1.1.1
 * @date 2018/3/2
 * @Description hello测试controller类
 */
@Controller
public class HelloWorldController {


    @RequestMapping(value = "/hello",produces = { "application/json;charset=UTF-8" })
    @ResponseBody
    public String sayHello(){
        String str = "世界 你好";
        System.out.println(str);
        return  str;

    }

}
